﻿Chenxin.UI.EntrustManage=Chenxin.extend(Chenxin.UI.PageCommon,{
	autoInitForm:false,
	actionUrl:'service/trusthandler.ashx',
	createGrid:function(){
		return new Chenxin.UI.Pagination({
			actionUrl:this.actionUrl+'?op=getlist',
			domId:'page',
			pageSize:10,
			data:{},
			render:function(data){
				document.getElementById('trust_table').innerHTML=data;
			}
		});
	},
	cancle:function(){
	
	},
	initEvent:function(){
	},
	
	createSearch:function(){
		return new Chenxin.UI.EntrustManageSearch({
			scope:this
		});
	},
	initComponent:function(){
		Chenxin.UI.EntrustManage.superclass.initComponent.call(this);
	}
});


/**
*查询面板
*/
Chenxin.UI.EntrustManageSearch=Chenxin.extend(Chenxin.UI.SearchCommon,{
	id:'trust_search',
	initEvent:function(){
		var _this=this;
		$('#btn_search').click(function(){
			_this.scope.reloadGrid();
		});
	},
	createComboList:function(){
		var status=new Chenxin.UI.Combo({
				containerId:'#trusttype',
				tbxWidth:45,
				items:comboCommon.trustType
			});
		return [status];
	},
	initComponent:function(){
		Chenxin.UI.EntrustManageSearch.superclass.initComponent.call(this);
	}
});


$(document).ready(function(){
	var trustMgr=new Chenxin.UI.EntrustManage();	
});





